package com.sun.filesigndemo.common.security.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sp_role")
public class Role {

    @Id
    private  Integer rid;

    @Column(name = "rname")
    private String name;

//    public Role(Integer rid, String name) {
//        this.rid = rid;
//        this.name = name;
//    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

//    private Set<Permission> permissions = new HashSet<>();
//
//    private Set<User> users = new HashSet<>();
//
//    public Set<Permission> getPermissions() {
//        return permissions;
//    }
//
//    public void setPermissions(Set<Permission> permissions) {
//        this.permissions = permissions;
//    }
//
//    public Set<User> getUsers() {
//        return users;
//    }
//
//    public void setUsers(Set<User> users) {
//        this.users = users;
//    }
}
